/****** Object:  Stored Procedure [dbo].spChiTietBienBanKiemKeKhoInsert Script Date: 7/16/2012 ******/
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'[dbo].[spChiTietBienBanKiemKeKhoInsert]') AND OBJECTPROPERTY(id, N'IsProcedure') = 1)
	DROP PROCEDURE [dbo].[spChiTietBienBanKiemKeKhoInsert]
GO

/******************************************************************************
**		Change History
*******************************************************************************
**		Date:		Author:					Description:
**		--------	--------				-----------------------------------
**		17/07/2012	SongTM					Innit created
*******************************************************************************/

CREATE PROCEDURE [dbo].[spChiTietBienBanKiemKeKhoInsert]
(
	@MaBBKKK nvarchar(12),
	@MaLuuKho int,
	@TonSoSach int,
	@TonThucTe int,
	@ChenhLechThucTe int,
	@TinhTrang nvarchar(50)
)
WITH ENCRYPTION

AS

SET NOCOUNT ON

INSERT INTO [tbl_ChiTietBienBanKiemKeKho]
(
	[MaBBKKK],
	[MaLuuKho],
	[TonSoSach],
	[TonThucTe],
	[ChenhLechThucTe],
	[TinhTrang]
)
VALUES
(
	@MaBBKKK,
	@MaLuuKho,
	@TonSoSach,
	@TonThucTe,
	@ChenhLechThucTe,
	@TinhTrang
)
GO

--GRANT EXECUTE ON [dbo].[spChiTietBienBanKiemKeKhoInsert] TO [sa]
--GO
